import request from '@/utils/request'

// 服务聊天记录
export function servicemessagelist(query) {
  return request({
    url: '/backAdmin/groupServApi/service/message/list',
    method: 'get',
    params: query
  })
}
// 详情列表
export function groupServApiservicelist(query) {
  return request({
    url: '/backAdmin/groupServApi/service/list',
    method: 'get',
    params: query
  })
}

// 用户列表
export function userlist(query) {
  return request({
    url: '/backAdmin/groupServApi/user/list',
    method: 'get',
    params: query
  })
}


// 处方详情列表
export function listPrescriptionDetail(query) {
  return request({
    url: "/backAdmin/medicalApi/prescription/detail/list",
    method: "get",
    params: query,
  });
}
// 处方详情
export function medicalApiPrescriptionDetail(medicalPrescriptionId) {
  return request({
    url: `/backAdmin/medicalApi/prescription/detail?medicalPrescriptionId=${medicalPrescriptionId}`,
    method: "get",
  });
}
// 处方列表
export function listPrescription(query) {
  return request({
    url: "/backAdmin/medicalApi/prescription/list",
    method: "get",
    params: query,
  });
}



// 病历详情
export function medicalApiRecordDetail(medicalRecordId) {
  return request({
    url: `/backAdmin/medicalApi/record/detail?medicalRecordId=${medicalRecordId}`,
    method: "get",
  });
}
// 病历详情列表
export function medicalApiRecordDetailList(query) {
  return request({
    url: `/backAdmin/medicalApi/record/detail/list`,
    method: "get",
    params: query,
  });
}
// 病历列表
export function listRecord(query) {
  return request({
    url: "/backAdmin/medicalApi/record/list",
    method: "get",
    params: query,
  });
}




// 检查详情
export function medicalApiCheckDetail(medicalCheckId) {
  return request({
    url: `/backAdmin/medicalApi/check/detail?medicalCheckId=${medicalCheckId}`,
    method: "get",
  });
}
// 检查详情列表
export function medicalApiCheckDetailList(query) {
  return request({
    url: `/backAdmin/medicalApi/check/detail/list`,
    method: "get",
    params: query,
  });
}
// 检查列表
export function listCheck(query) {
  return request({
    url: "/backAdmin/medicalApi/check/list",
    method: "get",
    params: query,
  });
}




// 单据详情
export function medicalApiFormDetail(formId) {
  return request({
    url: `/backAdmin/medicalApi/form/detail?formId=${formId}`,
    method: "get",
  });
}
// 单据列表
export function listForm(query) {
  return request({
    url: "/backAdmin/medicalApi/form/list",
    method: "get",
    params: query,
  });
}


// 查询公告详细
export function getNotice(noticeId) {
  return request({
    url: "/system/notice/" + noticeId,
    method: "get",
  });
}

// 新增公告
export function addNotice(data) {
  return request({
    url: "/system/notice",
    method: "post",
    data: data,
  });
}

// 修改公告
export function updateNotice(data) {
  return request({
    url: "/system/notice",
    method: "put",
    data: data,
  });
}

// 删除公告
export function delNotice(noticeId) {
  return request({
    url: "/system/notice/" + noticeId,
    method: "delete",
  });
}
